Import libraries


In [1]:
import matplotlib.pyplot as plt
from matplotlib import gridspec
import sys
import os
import otbApplication

Prepare and run application


In [18]:
file='despeckle.tif'
ReadImageInfo = otbApplication.Registry.CreateApplication("ReadImageInfo")
ReadImageInfo.SetParameterString("in", file)
ReadImageInfo.SetParameterString("outkwl", 'info.txt')
ReadImageInfo.ExecuteAndWriteOutput()


Out[18]:
0